#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include"Menu.h"
#include"Student_Func.h"
#include"Person.h"
#include"Admin_Func.h"
#include "Teacher_Func.h"

//最后编写时间:2025/7/181

//作者:dgg
//gitee地址：https://gitee.com/ccc-dgg/c-language-data-structure.git

//函数模板在2-2示例




int main(){
    pStudent_t stu_phead = NULL;
    pAdmin_t admin_phead = NULL;
    pTeacher_t teacher_phead=NULL;
    stu_phead=Student_Init();
    //学生基本用例
    Student_Head_Insert(stu_phead,Create_new_node("Aa123","aa123","张三",'m',180,90));
    Student_Head_Insert(stu_phead,Create_new_node("Bb456","bb456","李四",'w',170,80));
    Student_Head_Insert(stu_phead,Create_new_node("Cc789","cc789","张三",'m',160,70));
    Student_Head_Insert(stu_phead,Create_new_node("Dd101","dd101","赵六",'w',150,60));
    Student_Head_Insert(stu_phead,Create_new_node("Ee202","ee202","吴七",'w',140,50));
    //管理员基本用例
    admin_phead=Admin_Init();
    Admin_Head_Insert(admin_phead,Create_Admin_Node("Admin123","admin123","管理员1"));
    Admin_Head_Insert(admin_phead,Create_Admin_Node("Admin456","admin456","管理员2"));
    //老师基本用例
    teacher_phead=Teacher_Init();
    Teacher_Head_Insert(teacher_phead,Create_Teacher_node("Tea123","tear123","李老师",40,'w'));
    Teacher_Head_Insert(teacher_phead,Create_Teacher_node("Tea321","tear321","王老师",50,'m'));
    Teacher_Head_Insert(teacher_phead,Create_Teacher_node("Tea456","tear456","刘老师",60,'w'));
    Teacher_Head_Insert(teacher_phead,Create_Teacher_node("Tea654","tear654","区老师",30,'m'));
    Teacher_Head_Insert(teacher_phead,Create_Teacher_node("Tea354","tear354","区老师",0,'m'));




    //界面
    choice_menu(stu_phead,admin_phead,teacher_phead);
    

    Release_Student_List(stu_phead);
    Release_Admin_List(admin_phead);
    Release_Teacher_List(teacher_phead);
  
    stu_phead=NULL;
    admin_phead=NULL;
    teacher_phead=NULL;
    return 0;
}